package org.bright.service;

import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;
import org.bright.entity.Inventory;
import com.baomidou.mybatisplus.extension.service.IService;
import org.bright.vo.InventoryVO;

import java.io.UnsupportedEncodingException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.util.List;

/**
 * <p>
 * 库存表 服务类
 * </p>
 *
 * @author bright
 * @since 2024-10-21
 */
public interface IInventoryService extends IService<Inventory> {
    Inventory selectAllByProductId(Integer productId);
    int updateQuantityAndCreatedTime(int quantity,int productId);

    int insertQuantityAndCreatedTime(int quantity,int productId);
    PageInfo<InventoryVO> selectAllInventory(int pageNum,String productName) throws UnsupportedEncodingException, NoSuchAlgorithmException, InvalidKeyException;
}
